package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DepartmentAlarmStatisticsMapper;
import com.ruoyi.system.domain.DepartmentAlarmStatistics;
import com.ruoyi.system.service.IDepartmentAlarmStatisticsService;

/**
 * 部门报警统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-15
 */
@Service
public class DepartmentAlarmStatisticsServiceImpl implements IDepartmentAlarmStatisticsService 
{
    @Autowired
    private DepartmentAlarmStatisticsMapper departmentAlarmStatisticsMapper;

    /**
     * 查询部门报警统计
     * 
     * @param id 部门报警统计主键
     * @return 部门报警统计
     */
    @Override
    public DepartmentAlarmStatistics selectDepartmentAlarmStatisticsById(Integer id)
    {
        return departmentAlarmStatisticsMapper.selectDepartmentAlarmStatisticsById(id);
    }

    /**
     * 查询部门报警统计列表
     * 
     * @param departmentAlarmStatistics 部门报警统计
     * @return 部门报警统计
     */
    @Override
    public List<DepartmentAlarmStatistics> selectDepartmentAlarmStatisticsList(DepartmentAlarmStatistics departmentAlarmStatistics)
    {
        return departmentAlarmStatisticsMapper.selectDepartmentAlarmStatisticsList(departmentAlarmStatistics);
    }

    /**
     * 新增部门报警统计
     * 
     * @param departmentAlarmStatistics 部门报警统计
     * @return 结果
     */
    @Override
    public int insertDepartmentAlarmStatistics(DepartmentAlarmStatistics departmentAlarmStatistics)
    {
        return departmentAlarmStatisticsMapper.insertDepartmentAlarmStatistics(departmentAlarmStatistics);
    }

    /**
     * 修改部门报警统计
     * 
     * @param departmentAlarmStatistics 部门报警统计
     * @return 结果
     */
    @Override
    public int updateDepartmentAlarmStatistics(DepartmentAlarmStatistics departmentAlarmStatistics)
    {
        return departmentAlarmStatisticsMapper.updateDepartmentAlarmStatistics(departmentAlarmStatistics);
    }

    /**
     * 批量删除部门报警统计
     * 
     * @param ids 需要删除的部门报警统计主键
     * @return 结果
     */
    @Override
    public int deleteDepartmentAlarmStatisticsByIds(Integer[] ids)
    {
        return departmentAlarmStatisticsMapper.deleteDepartmentAlarmStatisticsByIds(ids);
    }

    /**
     * 删除部门报警统计信息
     * 
     * @param id 部门报警统计主键
     * @return 结果
     */
    @Override
    public int deleteDepartmentAlarmStatisticsById(Integer id)
    {
        return departmentAlarmStatisticsMapper.deleteDepartmentAlarmStatisticsById(id);
    }
}
